package wordit.impl.boardwise;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import wordit.Letter;

public class BoardPartitioner {

	public Iterable<Iterable<Letter>> createPartitioning(
			List<Letter> allLetters) {

		Collection<Iterable<Letter>> partitions = new ArrayList<Iterable<Letter>>(
				2);

		partitions.add(allLetters.subList(0, allLetters.size() / 2));
		partitions.add(allLetters.subList(allLetters.size() / 2, allLetters
				.size()));

		return partitions;
	}

}